Changing database config, adding tests