Error handling improvements
MySQL error handling
Fetch refactoring
Refactoring
Refactoring
Refactoring
String validation
Refactoring
Data validation