Changed db setup script completely