Database and spinner works