put config of database to locals