Add database methods. Untested