Added databse fetch functions