Add tick controller, move sqlite to app dir