create circle texture and revise code about database open, close.