fixed bug with custom database path