#13 [Core] catching mysql exception