Moving database and twilio imports to top level