fixed url and db issue