Simple dataBase code