modified DAO functions for use with php request