Try fixing PDO functions in update_activity.