fixed db create