Secure and Simple PHP database class