Added the repo db table and added function to repos and user to the database.