Enable layout, create db adapter, add configurations for memcache and mongo