implements creating database command