Added new methods in database.