Database connection and editing with PHP