integrate with DB