Updated database create method