Database schema bug fixed