open database wipes previous one