fixed faulty db creation on first install