For f# to talk to a database, I presume you turn to some code that looks quite a lot like C# code, using some NET libraries (ado.net for example) and quite a lot of imperative code that has, by definition, quite a lot of side-effects..
Or am I missing something here? Has F# some beauty to offer in this domain also?
And would someone be so kind a to provide me with an example for both reading from an writing to a database?
You may want to use the accepted answer in this question as a good starting point.
F# Beginner: retrieving an array of data from a server
Depending on the database you are using you may get some other choices, but start with something fairly functional and you can improve on it as you gain experience.