update model to 0.3.0

renamed methods to follow the Dart Style Guide
fixed mysql error