add sql and crypto with tests