Database structure and cake configuration