fixed some performance issues

by removing some too general db treatment back to mysql db direct row
access where possible