add sql to create indexes, remove hardcore limit for # of logs, go back to Kunal fix on Jpautil usega