SQLite database row reimplementation based on shared pointers
Fix compiling issues