Implementated Database Functions