Fixed bug in db schema and creator super function