sqlite database set up
Read function mostly set