Fix tex compile command
Add database config template