a simple php database connection manager