Fix for DB communication for bottle frameworks