You should only call dbSyncOn() once (or if you need to switch from sync on / off and back again); what you probably meant to put in your main loop is
dbSync(). This will render the scene and present it to the screen. You don't have to, but you probably want to issue the sync call after you've done all visual movements / etc. updates in the loop cycle too, or what you'll see will always be one frame after the actual state of the game.
Also, use the [ code ] [ /code ] tags to get your pasted code to have proper intendation; makes it much easier to read.
"Why do programmers get Halloween and Christmas mixed up?" Because Oct(31) = Dec(25)