use hash keys for db fields instead of hardcoding them