Added the Database Layer.