db stuff
Log Ind now working