bug-34-preload-database-function

@john-hu I have finished bug-34, Please help me review this one. Thank you~
CPU lock 看起來很像沒有什麼用處..我們需要的是 screen lock.