fixed bug #1

Added change database function in config