finished database methods