added common php utils

useful db and core php utils