Same as above:
Before, the logic was: Request *not equal* 0 then  *OK*
Now, the logic is: Request *equal* 0 then *Fix it*

Furthermore, the previous logic was odd since the user and the database was checked at the same time but only one action was made for the the both of them:
If *no User* then *create Database and User*
if *no Database* then *create Database and User*