change dbpath depending on the os