php: Abstract Conection class for connecting to a database