removed constructor, switched to prepared statements for security
reasons, fixed try/catch errors.