[Fixed] bug with db  mapping