fixed missing db connection