[Fixed] access to db