make database filename dynamically