modified for new database url