fixes for db location