Added mongodb and gson maven dependencies
Updated methods
Added classes related to database
Added classes related to exceptions