added some more database methods