little fix of making database