hardcode mem and db