update database schema and add database config