diff --git a/stellar/command.py b/stellar/command.py
index <HASH>..<HASH> 100644
--- a/stellar/command.py
+++ b/stellar/command.py
@@ -195,6 +195,7 @@ def init():
                 print
     else:
         db_name = url.rsplit('/', 1)[-1]
+        url = url.rsplit('/', 1)[0] + '/'
 
     name = click.prompt(
         'Please enter your project name (used internally, eg. %s)' % db_name,
Fix incorrect configuration file after init

Url and stellar_url data in stellar.yaml configuration file
data should not include database name.