Incorperating arrays for database