Added several database methods