Refactor DB connection. Moved to it's own modules.
Gallery FE controller added
Gallery changes