dataBase working