Add database create function.