preparing database settings