Add db config and layout