The link provided by vikram will be crucial for your upgrade procedure. But make sure that the SEPM service has been stopped before you run the setup. SEM service is accessing the database. When you upgrade the SEPM, its going to upgrade the database schema as well. So, we do not want any active connectins to the database while this is going on.
Aniket