database config and create