Fix setting database name