A bit more cleaning up on PHP, such as database connection