fixing db template for mysql