Added new database methods