added db persistance to basic drawing