introduce alot of bugs, add stdin listener
fix alot of bugs, db works, now log lines.