Move database and memcached settings to separate file