update php for database selection