Some new database methods