fixed bug
added error message on mysql connect
fixed naming in packages