Setting up the database

This PR aims to set up the database through doctrine2