Add support to open database