Validate rating on new player dialog. Show error dialog on SQL errors. Extract DB code into Database class.