It is unclear whether or not you are creating a new LVM file when you fetch from the database or trying to read the text from the database and parse it directly. The LVM read Express VI expects an LVM file. If you are creating the LVM file and it is not working, please post a copy of the created file. It is quite possible the database save/fetch is adding or removing a few things. In particular, the LVM read will probably not function well if the header info is not restored correctly.
On a related note, you can probably use the database the return the specific LVM fields without having to go through the create file step. See the
LVM file specification for details of the format. Talk to your database admin about how to retrieve things. Let us know if need more help.