changed db to use env url