Cleaned it up a bit. Code for putting categories from the database in the Spinner cleaned.