Introduce DBI::mysql module, exceptions, errormessages, foreach loop and pushing values to arrays