pulse: Fix module database upgrade version

If an upgrade of a SQL schema version fails, module is still loaded.

So, adding an error log and check if SQL upgrade was a success.

If not, module is not loaded.