init main components
add sql helper