Fix: Check if DB is already prepared

Avoid calling DB functions, json parsing again if DB is already
prepared. Updating of DB Version only for testing of onUpgrade