Finished implementing SQLite
Optimizations and bigfixes and stuff