added more db methods