def encode_db_connstr(name,  # pylint: disable=too-many-arguments
                      host='127.0.0.1',
                      port=5432,
                      user='postgres',
                      password='password',
                      scheme='postgresql'):
    """ builds a database connection string """
    conn_str = (
        str(scheme) + '://' +
        str(user) + ':' +
        str(password) + '@' +
        str(host) + ':' +
        str(port) + '/' +
        str(name)
    )

    return conn_str