Check if database can be read/written