I have set the database password in bitbucket.properties. The line looks like this:
sqlserver://localhost:1433;databaseName=BitBucket;
jdbc.user=sajdbc.password=
I'm not sure which user the sajbdc user translates to so I'm not sure which password to use.