fixed building without any database selected