Fix syncdb in database router