Change database implimentation. Remove system call.