Added prepare function to SwiftDb class.