Fix messages DB creation