Simple database package, avoid abnormal of lock in multi thread to read and write。