setting up environments and db