Added database methods