setup for production databases and fixed too many columns and rows issue