Some extra loggin on problems with db connection
Fix import db functions