built functions for front to pull from database, needs testing