Added list function to DB