Add development logger
Optimize database queries with Avi