Making sure database is integer