Testing: Make MySQL DB creating more error resilient
Use join instead of subquery
Merge pull request #704 from nils-werner/small_sql_maintenance

Small sql maintenance