created template
added database infos checking
updated timply lib