Preparing sqlite infractructure