fix market and start adding db-feateures to marketimpl
fix market and start adding db-feateures to marketimpl 2