fill spinner on startup and added rating to database