finish pthread_sqlite,finish frame work