tried to make helpers for DB in php, failed