Fixed error in DatabaseService