Updated database structure, updated sqlite (don't use this source code, it may be changed)